# include "scene.h"
# include <stdio.h>
# include <stdlib.h>

extern void mem_distroy(FILE *lptr, struct arr_struct *arr)
  {
   int i, j, k;

   fprintf(lptr, "Entering into 'free_mem()'...\n");

   for(i = 0; i < arr->nq; i++)
       {
        for(j = 0; j < arr->n1; j++)
            {
             for(k = 0; k < arr->n2; k++) free(arr->q[i][j][k]);
             free(arr->q[i][j]);
            }
        free(arr->q[i]);
       }

   free(arr->q);

   fprintf(lptr, "...'free_mem()' ends.\n");

   return;
  }
